package com.port.eleport.model.biz;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.port.eleport.model.base.IdEntity;


/**
 *  退换货详情
 * @author jameschen
 *
 */
@Entity
@Table(name = "biz_sr_detail", schema = "")
@DynamicInsert(true)
@DynamicUpdate(true)
public class TSrDetail extends IdEntity {
	
	/**
	 * 货号
	 */
	@Column(name="product_no")
	private String productNo;
	
	/**
	 * 数量
	 */
	@Column(name="qty_")
	private Integer qty;
	
	/**
	 * 退换货
	 */
	@ManyToOne
	@JoinColumn(name="sr_id")
	private TSr sr;

	public String getProductNo() {
		return productNo;
	}

	public void setProductNo(String productNo) {
		this.productNo = productNo;
	}

	public Integer getQty() {
		return qty;
	}

	public void setQty(Integer qty) {
		this.qty = qty;
	}

	public TSr getSr() {
		return sr;
	}

	public void setSr(TSr sr) {
		this.sr = sr;
	}
	
	
}
